package site.codeblog.designpattern.depend_reverse.after.impl;


import site.codeblog.designpattern.depend_reverse.after.inteface.Cpu;
import site.codeblog.designpattern.depend_reverse.after.inteface.Disk;
import site.codeblog.designpattern.depend_reverse.after.inteface.Mem;

public class AfterDemo {


    public static void main(String[] args)
    {
        Cpu interCpu = new InterCpu();
        Disk xiJieDisk = new XiJieDisk();
        Mem haiDaoChuanMem = new HaiDaoChuanMem();

        Computer computer = new Computer();
        computer.setCpu(interCpu);
        computer.setDisk(xiJieDisk);
        computer.setMem(haiDaoChuanMem);
        computer.run();
    }




}
